Man Tzset can clearly understand the time zone format, a total of 3 kinds:The first format is used when there are no daylight saving time in the local timezone:STD OffsetThe second format is used if there is daylight saving time:STD offset DST
Part of this article is from: http://hi.baidu.com/peruke/blog/item/b8de06ec6a04583b27979132.htmlThe system is fedora:GLIBC realizes a conversion from RTC time to human readable time, the general system does not apply environment variable TZ to set
Linux time zone details and common time functions time and time zone The entire earth is divided into 24 time zones, each time zone has its own local time. ø UTC Time and GMT time We can think of Greenwich Mean Time (GMT = UTC), GMT and
Introduction of TimeZoneTimeZone represents the time zone offset, or it can calculate daylight savings.TimeZone is often used when manipulating dates, calendar, and so on to represent date/time objects, because of different time zones.Here are 2
Linux/unix-time timestamp processing conversion functionThe time function under LinuxWe can often use time in programming, such as getting the system time (to get the system's year, month, day, hour, minute, second, week, etc.), or to do something
The tzset seems to be in effect only at the time of initialization, which is useless when tzset is called multiple times.Today a little in-depth search for the implementation of the Tzset in glibc, found that this is not the case, its real
Regular formatting
The format () method of the string class is used to create formatted strings and connect multiple string objects. Readers familiar with the C language should remember the sprintf () method of the C language. The two have
This chapter describes timezone.
TimeZone Introduction
TimeZone represents the time zone offset, or it can calculate daylight savings.
TimeZone is often used when manipulating dates, calendar, and so on to represent date/time objects, because of
All the while, Tzset seems to take effect only when it's initialized, and it doesn't work when Tzset calls multiple times.
Today a little in-depth search of the glibc in the implementation of the Tzset, found that is not the case, its real
Function category:1. Set the time: settimeofday, tzset2. Get time: time, ftime, gettimeofday3. Time Format Conversion: mktime, strftime; gmtime, localtime; asctime, ctime4. Others: Clock, difftime
Asctime: represents the time and date in string
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.